export class User {
  constructor (user) {
    user = user || {}
    this.id = user.id
    this.full_name = user.full_name || ''
    this.email = user.email
    this.is_admin = user.is_admin
    this.is_director = user.is_director
    this.is_hr_manager = user.is_hr_manager
  }

  can (permission) {
    return true
    // if (this.hasRole('admin')) {
    //   return true
    // }
    //
    // return this.permissions.includes(permission)
  }

}
